
private var buttonToggle=false;
var currentButtonSelected:String;


function Update () {

	if(buttonToggle){

		if (Input.GetButtonDown("Slot1Team2")){
				currentButtonSelected= "21";
				print("Current Button Selected: "+currentButtonSelected);
			}	
		if (Input.GetButtonDown("Slot2Team2")){
				currentButtonSelected= "22";
				print("Current Button Selected: "+currentButtonSelected);
			}	
		if (Input.GetButtonDown("Slot3Team2")){
				currentButtonSelected= "23";
				print("Current Button Selected: "+currentButtonSelected);
			}	
		if (Input.GetButtonDown("Slot4Team2")){
				currentButtonSelected= "24";
				print("Current Button Selected: "+currentButtonSelected);
			}	
		if (Input.GetButtonDown("Slot5Team2")){
				currentButtonSelected="25";
				print("Current Button Selected: "+currentButtonSelected);
			}
		if (Input.GetButtonDown("LogicSpawn2")){
				currentButtonSelected="Logic";
				print("Current Button Selected: "+currentButtonSelected);
			}
		if (Input.GetButtonDown("DeceptionSpawn2")){
			currentButtonSelected="Deception";
			print("Current Button Selected: "+currentButtonSelected);
		}
		if (Input.GetButtonDown("EthicsSpawn2")){
			currentButtonSelected="Ethics";
			print("Current Button Selected: "+currentButtonSelected);
		}
		if (Input.GetButtonDown("PassionSpawn2")){
			currentButtonSelected="Passion";
			print("Current Button Selected: "+currentButtonSelected);
		}			
		
	}
}

function TurnButtonsOn(){
	this.buttonToggle=true;
}

function TurnButtonsOff(){
	this.buttonToggle=true;
}